package com.jzcn.service;

import com.jzcn.common.base.IBaseService;
import com.jzcn.common.dto.system.resources.ResourcesDTO;
import com.jzcn.common.dto.system.resources.SearchResourcesDTO;
import com.jzcn.common.utils.JzPage;
import com.jzcn.domain.SysResources;

import java.util.List;


public interface SysResourcesService extends IBaseService<SysResources> {

    boolean create(ResourcesDTO sysResourcesDTO);

    boolean update(ResourcesDTO sysResourcesDTO, Integer id);

    boolean delete(Integer id);

    ResourcesDTO getInfo(Integer id);

    JzPage<ResourcesDTO> listPage(SearchResourcesDTO searchResourcesDTO);

    List<ResourcesDTO> treeData();

    boolean status(Integer id,Integer status);

    List<ResourcesDTO> currentUserTree(Integer userId);
}
